package cn.com.sbell.vss.csg.vap;

import org.dom4j.Element;

import cn.com.sbell.vss.csg.vap.bean.VSCommon;
import cn.com.sbell.vss.csg.vsclient.VsClient;
import cn.com.sbell.vss.csg.vsclient.util.PropertiesHolder;

public class GetVsCommonInfo extends ProtectedVsCommander {

	protected Element executeCommand(VsClient vsClient,
			PropertiesHolder holder, Element root) {
		VSCommon vsCommon = vsClient.getVSCommon();
		root.addElement("deviceId").addText(toString(vsCommon.getDeviceId()));
		root.addElement("deviceName").addText(toString(vsCommon.getDeviceName()));
		root.addElement("videoMonitorEnabled").addText(toString(vsCommon.getVideoMonitorEnabled()));
		root.addElement("videoMonitorInterval").addText(toString(vsCommon.getVideoMonitorInterval()));
		root.addElement("passWord").addText(toString(vsCommon.getPassWord()));
		return root;
	}

}
